import request from '@/utils/request'

// 查询油厂部门管理列表
export function listDepartment(query) {
  return request({
    url: '/system/department/list',
    method: 'get',
    params: query
  })
}

// 查询油厂部门管理详细
export function getDepartment(deptId) {
  return request({
    url: '/system/department/' + deptId,
    method: 'get'
  })
}

// 新增油厂部门管理
export function addDepartment(data) {
  return request({
    url: '/system/department',
    method: 'post',
    data: data
  })
}

// 修改油厂部门管理
export function updateDepartment(data) {
  return request({
    url: '/system/department',
    method: 'post',
    data: data
  })
}

// 删除油厂部门管理
export function delDepartment(deptId) {
  return request({
    url: '/system/department/' + deptId,
    method: 'delete'
  })
}

// 查询部门下拉列表
export function ycdeptSelect() {
  return request({
    url: '/system/department/ycdeptSelect',
    method: 'get',
  })
}

